-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-48623: [CI][Archery][Dev] Add missing headers to email reports #48624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
12b1981 to
8cedff5
Compare
|
From #48623 (comment)
At present, the headers have to be generated in lots of places, which means more maintenance and more testing. As to doing a dry-run, that depends on whether you need to see all the headers or just the body. The Python email library builds up the message for sending, and you can just print the message instead of sending it. |
|
AFAICT when you refer to dry-run, you mean using something like If the templates no longer contain the headers, then of course they won't be shown. I think the simplest way round this is to add a The dry-run code would then need to be changed to
|
|
Thanks. I understand your point. We should provide a function for general headers generation, right? How about the 6b31c32 approach? |
This does not solve the issue that mail headers need special handling, and still leaves multiple locations to be maintained and tested. |
What does the "special handing" mean? I thought that it's non ASCII characters encoding, folding a long line and so on. And I thought that all of them are processed by the
What does the "multiple locations" mean? We should not have header related information in |
I see that most of the header values are passed to Also I see that the tests don't account for
That the same code appears in multiple locations. By which I mean that the code transforms the data. |
6b31c32 to
53b10dd
Compare
It's for encapsulating header generation code to report an object.
53b10dd to
ce6b347
Compare
|
I didn't know I reconstructed I confirmed $ archery ci report-email --dry-run --sender-email arrow@commit-email.info --sender-name Arrow --recipient-email kou@clear-code.com 20867714288
MIME-Version: 1.0
Message-Id: <176802522672.3361134.1173117024017522311@coolian>
Date: Fri, 09 Jan 2026 22:42:43 -0000
From: Arrow <arrow@commit-email.info>
To: kou@clear-code.com
Subject: [2026-01-09] Arrow Build Report for Job R Extra: 0 failed
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Arrow Build Report for R Extra
Workflow URL: https://github.com/apache/arrow/actions/runs/20867714288 |
|
@raulcd Do you want to review this before we merge this? |
Rationale for this change
Our email reports miss the following headers:
MIME-Version: 1.0Content-Type: text/plain; charset="utf-8"Message-Id: ${AUTO_GENERATED_MESSAGE_ID}Date: ${DATE_IN_RFC_2822}What changes are included in this PR?
Add these headers.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.